﻿using Abp.Application.Services.Dto;
using SingleUserMall.Adverts.Form;
using SingleUserMall.Adverts.VO;
using SingleUserMall.Common;
using System.ComponentModel;
using System.Threading.Tasks;

namespace SingleUserMall.Adverts
{
    /// <summary>
    /// 广告管理
    /// </summary>
    [Description("广告管理")]
    public interface IAdvertManageAppService : IManageService
    {
        /// <summary>
        /// 获取一条广告信息
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<AdvertManageVO> GetAdvertAsync(SingleId<long> form);
        /// <summary>
        /// 获取所有广告信息
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<PagedResultDto<AdvertManageVO>> GetAdvertsAsync(AdvertSearchForm form);
        /// <summary>
        /// 删除一条广告
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task RemoveAdvertAsync(SingleId<long> form);
        /// <summary>
        /// 保存一条广告
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<AdvertManageVO> SaveItemAsync(AdvertForm form);
    }
}
